//
// Created by xm on 2024/8/6.
//

#include "Test082.h"
#include <iostream>
#include <stack>
using namespace std;

class Maker
{
public:
    Maker(string name, int age)
    {
        this->name = name;
        this->age = age;
    }

public:
    string name;
    int age;
};


static void demo1()
{
    stack<int> s;
    s.push(10);
    s.push(20);
    s.push(30);
    s.push(40);
    while (!s.empty())
    {
        cout << s.top() << " ";
        // 弹出栈顶
        s.pop();
    }

    cout << endl;
}


void  test082()
{
    cout << "===== test082 =====" << endl;

    demo1();

}